<!--[*
// ----------------------------------------------------------------------
// Source file:   $
//
// Last changes from:  $Author: landseer $
//
// Revision:           $Revision: 1.8 $
//
// Date of revision    $Date: 2004/06/15 13:09:35 $
//
// ----------------------------------------------------------------------
*]-->

<!--[pncGetCategoryTree]-->   
<!--[pncUnfoldTree name='categories' data=$CategoryTree]-->
<!--[assign var=maxdepth value=1]-->
<!--[ foreach item=Category from=$unfolded_categories ]-->
   <!--[assign var=parentID value=$Category.CatParent]-->
   <!--[assign var=tmp value=$Category.CategoryID]-->
   <!--[assign var=depth value=$Category.depth]-->
   <!--[if (($open[$parentID] eq true ) and ($depth<=$maxdepth) ) || ($depth ==0) ]-->
<div>
   <!--[if $Category.depth>0]-->
       <!--[pncGetCountableArray assign='count1' count=$Category.depth-1]-->
       <!--[ foreach item=step from=$count1]-->
                &nbsp;&nbsp;&nbsp;
       <!--[/foreach]-->
       <img src="modules/pncommerce/pnimages/tree.gif" height="10" width="10" border="0" alt="tree"> 
   <!--[/if]-->
   <img src="modules/pncommerce/pnimages/folder.png" height="10" width="10" border="0" alt="folder"> 
   <!--[assign var=maxdepth value=$depth]-->
   <!--[if $Category.hasChildren]-->
       <!--[if $Category.open eq 1 ]-->
         <!--[assign var=maxdepth value=$depth+1]-->
          <a href="<!--[ pncUserModURL func=openclose mode=close id=$Category.CategoryID ]-->">-</a>
       <!--[else]-->
          <a href="<!--[pncUserModURL func=openclose mode=open id=$Category.CategoryID ]-->">+</a>
       <!--[/if]-->
   <!--[else]-->
     &nbsp;
   <!--[/if]-->
   <a href="<!--[pncUserModURL func=categoryview CategoryID=$Category.CategoryID nosearch=true ]-->"><!--[$Category.Category]--></a>
</div>
   <!--[/if]-->
<!--[/foreach]-->
<!--[*debug*]-->